package com.jwsoft.manager.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.bifang", "com.jwsoft"}, exclude = {SecurityAutoConfiguration.class})
@EnableTransactionManagement(order = 0)
@ServletComponentScan//Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册，无需其他代码
@Configuration//声明当前类是个配置类,相当于一个Spring配置的xml文件
@EnableAsync // 启动异步调用
@EnableScheduling//定时任务
@MapperScan({"com.bifang.module.**.dao.mapper.**", "com.jwsoft.**.dao.mapper.**"})
public class ManagerWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManagerWebApplication.class, args);
    }

}
